package ${basePackage}.controller;


import ${basePackage}.entity.${upperStartModelName};
import ${basePackage}.request.body.PageCondition;
import ${basePackage}.service.impl.${upperStartModelName}ServiceImpl;
import com.framework.boc.response.CommonResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import com.framework.boc.controller.BaseController;

/**
 * <p>
 * ${tableComment} 前端控制器
 * </p>
 *
 * @author Leil
 * @since ${.now}
 */
@RestController
@RequestMapping("/${middleLineModelName}")
public class ${upperStartModelName}Controller extends BaseController {

    @Autowired
    ${upperStartModelName}ServiceImpl ${camelModelName}Service;

    @PostMapping("/page")
    public CommonResponse page(@RequestBody PageCondition<${upperStartModelName}> condition) {
        CommonResponse response = this.${camelModelName}Service.getPage(condition);
        return response;
    }

}

